﻿<!doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width">
	
		<title>HTML5 Player Framework - Autoplay Example</title>

		<link rel="stylesheet" href="../css/playerframework.min.css">
		<link rel="stylesheet" href="../css/style.css">

		<script src="../js/playerframework.min.js"></script>
	</head>
	<body>
		<h1>HTML5 Player Framework</h1>
		<h2>Autoplay Example</h2>

		<div id="myVideoContainer" class="pf-container"></div>

		<script>
			var myPlayer = new PlayerFramework.Player("myVideoContainer",
			{
				mediaPluginFallbackOrder: [ "VideoElementMediaPlugin", "SilverlightMediaPlugin" ],
				//mediaPluginFallbackOrder: [ "SilverlightMediaPlugin", "VideoElementMediaPlugin" ],
				//mediaPluginFallbackOrder: [ "HyperlinkMediaPlugin" ],
				width: "480px",
				height: "320px",
				poster: "http://smf.blob.core.windows.net/samples/videos/bigbuck.png",
				autoplay: true,
				sources:
				[
					{
						src: "http://streams.smooth.vertigo.com/BigBuckBunny_30sec/bigbuck.ism/manifest",
						type: "text/xml"
					},
					{
						src: "http://smf.blob.core.windows.net/samples/videos/bigbuck.mp4",
						type: 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'
					},
					{
						src: "http://smf.blob.core.windows.net/samples/videos/bigbuck.webm",
						type: 'video/webm; codecs="vp8, vorbis"'
					},
					{
						src: "http://smf.blob.core.windows.net/samples/videos/bigbuck.ogv",
						type: 'video/ogg; codecs="theora, vorbis"'
					}
				]
			});
		</script>
	</body>
</html>